package org.wyz.observer_before;

public class LogPub {

    public String getLog() {
        return "new log";
    }

    public void publishLog() {
        String log = getLog();

        new MqClient().consume(log);
        new DfsClient().consume(log);
    }


    public static void main(String[] args) {
        new LogPub().publishLog();
    }
}
